package com.itfetter.api.client;

import com.itfetter.api.client.fallback.PayCliectFallback;
import com.itfetter.api.config.DefaultFeignConfig;
import com.itfetter.api.dto.PayOrderDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
@FeignClient(value ="pay-service" ,configuration = DefaultFeignConfig.class,fallbackFactory = PayCliectFallback.class)
public interface PayClient {
    @GetMapping("/pay-orders/biz/{id}")
    PayOrderDto queryPayOrderByBizOrderNo(@PathVariable("id") Long bizOrderNo);
}
